Package com.cisco.pt.ipc.ui.impl
Class AppWindowImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCObjectImpl
com.cisco.pt.ipc.ui.impl.AppWindowImpl
Information provided by the PKI file:
\class AppWindow
\brief AppWindow serves as the entry point to all GUI objects.
\example appWindow()
- Author:
- Auto-generated
-
Field Summary
Fields inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
accessMessage, ipcFactory, packetTracerSession -
Constructor Summary
ConstructorsConstructorDescriptionAppWindowImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidexit()Information provided by the PKI file:voidexitNoConfirm(boolean flag) Information provided by the PKI file:voidInformation provided by the PKI file:booleanfileNew(boolean flag) Information provided by the PKI file:Information provided by the PKI file:fileOpenFromURL(String url) Information provided by the PKI file:booleanfileSave()booleanfileSaveAs(String filename) Information provided by the PKI file:voidfileSaveAsAsync(String filename) Information provided by the PKI file:voidfileSaveAsNoPrompt(String filename, boolean bAsync) Information provided by the PKI file:booleanfileSaveAsPkz(String filename) Information provided by the PKI file:voidfileSaveAsPkzAsync(String filename) Information provided by the PKI file:voidInformation provided by the PKI file:Information provided by the PKI file:voidInformation provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:intInformation provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:getListOfFilesSaved(String location) Information provided by the PKI file:getListOfFilesToOpen(String location) Information provided by the PKI file:Information provided by the PKI file:intInformation provided by the PKI file:intInformation provided by the PKI file:intInformation provided by the PKI file:intInformation provided by the PKI file:Information provided by the PKI file:intInformation provided by the PKI file:intInformation provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:longInformation provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:Information provided by the PKI file:intgetWidth()Information provided by the PKI file:intgetX()Information provided by the PKI file:intgetY()Information provided by the PKI file:voidInformation provided by the PKI file:booleanbooleanisInterfaceLocked(String ID, String branchID1, String branchID2) Information provided by the PKI file:booleanInformation provided by the PKI file:voidInformation provided by the PKI file:voidInformation provided by the PKI file:booleanInformation provided by the PKI file:booleanInformation provided by the PKI file:booleanisPTSA()Information provided by the PKI file:booleanInformation provided by the PKI file:booleanInformation provided by the PKI file:listDirectory(String location, String filter) Information provided by the PKI file:booleanInformation provided by the PKI file:promptFileOpenFolder(String folder) Information provided by the PKI file:voidraise()voidsetCheckOutdatedDevices(boolean bCheck) Information provided by the PKI file:voidsetClipboardText(String text) Information provided by the PKI file:voidsetDisabled(boolean flag) Information provided by the PKI file:voidsetMaximumHeight(int height) Information provided by the PKI file:voidsetMaximumSize(int width, int height) Information provided by the PKI file:voidsetMaximumWidth(int width) Information provided by the PKI file:voidsetMinimumHeight(int height) Information provided by the PKI file:voidsetMinimumSize(int width, int height) Information provided by the PKI file:voidsetMinimumWidth(int width) Information provided by the PKI file:voidvoidsetPreventClose(boolean bPreventClose) Information provided by the PKI file:voidsetPTSAMode(String ptsaMode) Information provided by the PKI file:voidsetPTSAPluginVisible(boolean bVisible) Information provided by the PKI file:voidvoidsetVisible(boolean flag) Information provided by the PKI file:voidsetWindowGeometry(int x, int y, int width, int height) Information provided by the PKI file:voidsetWindowTitle(String title) Information provided by the PKI file:booleanInformation provided by the PKI file:booleanInformation provided by the PKI file:booleanshouldIgnoreFileOpenFolder(String folder) Information provided by the PKI file:booleanInformation provided by the PKI file:booleanInformation provided by the PKI file:booleanshouldIgnoreFileSaveAs(String file) Information provided by the PKI file:voidInformation provided by the PKI file:voidInformation provided by the PKI file:voidInformation provided by the PKI file:voidsuppressInstructionDlg(boolean bSuppress) voidInformation provided by the PKI file:Methods inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession, sendMessage, sendMessageWithReturn, translateToCommandStatusStringPairMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.IPCObject
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession
-
Constructor Details
-
AppWindowImpl
public AppWindowImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage)
-
-
Method Details
-
getMenuBar
Information provided by the PKI file:
\brief Returns the menu bar. \return MenuBar, the menu bar widget.- Specified by:
getMenuBarin interfaceAppWindow- Returns:
- MenuBar Returns a MenuBar
-
getToolBar
Information provided by the PKI file:
\brief Returns the toolbar. \return ToolBar, the toolbar widget.- Specified by:
getToolBarin interfaceAppWindow- Returns:
- ToolBar Returns a ToolBar
-
getSecondaryToolBar
Information provided by the PKI file:
\brief Returns the secondary toolbar. \return ToolBar, the toolbar widget.- Specified by:
getSecondaryToolBarin interfaceAppWindow- Returns:
- ToolBar Returns a ToolBar
-
getRSSwitch
Information provided by the PKI file:
\brief Returns the Realtime/Simulation mode switch. \return RSSwitch, the Realtime/Simulation mode switch widget.- Specified by:
getRSSwitchin interfaceAppWindow- Returns:
- RSSwitch Returns a RSSwitch
-
getPLSwitch
Information provided by the PKI file:
\brief Returns the Physical/Logical workspace switch. \return PLSwitch, the Physical/Logical workspace switch widget.- Specified by:
getPLSwitchin interfaceAppWindow- Returns:
- PLSwitch Returns a PLSwitch
-
getLogicalToolbar
Information provided by the PKI file:
\brief Returns the Logical workspace toolbar. \return LogicalToolbar, the Logical workspace toolbar widget.- Specified by:
getLogicalToolbarin interfaceAppWindow- Returns:
- LogicalToolbar Returns a LogicalToolbar
-
getPhysicalToolbar
Information provided by the PKI file:
\brief Returns the Physical workspace toolbar. \return PhysicalToolbar, the Physical workspace toolbar widget.- Specified by:
getPhysicalToolbarin interfaceAppWindow- Returns:
- PhysicalToolbar Returns a PhysicalToolbar
-
getSimulationToolbar
Information provided by the PKI file:
\brief Returns the Simulation mode toolbar. \return SimulationToolbar, the Simulation mode toolbar widget.- Specified by:
getSimulationToolbarin interfaceAppWindow- Returns:
- SimulationToolbar Returns a SimulationToolbar
-
getRealtimeToolbar
Information provided by the PKI file:
\brief Returns the Realtime mode toolbar. \return RealtimeToolbar, the Realtime mode toolbar widget.- Specified by:
getRealtimeToolbarin interfaceAppWindow- Returns:
- RealtimeToolbar Returns a RealtimeToolbar
-
setPLFrameVisible
public void setPLFrameVisible()- Specified by:
setPLFrameVisiblein interfaceAppWindow
-
setRSFrameVisible
public void setRSFrameVisible()- Specified by:
setRSFrameVisiblein interfaceAppWindow
-
getPhysicalLocationDialog
Information provided by the PKI file:
\brief Returns the Physical Location dialog. \return PhysicalLocationDialog, the Physical Location dialog widget.- Specified by:
getPhysicalLocationDialogin interfaceAppWindow- Returns:
- PhysicalLocationDialog Returns a PhysicalLocationDialog
-
getSimulationPanel
Information provided by the PKI file:
\brief Returns the Simulation panel. \return SimulationPanel, the Simulation panel widget.- Specified by:
getSimulationPanelin interfaceAppWindow- Returns:
- SimulationPanel Returns a SimulationPanel
-
getUserCreatedPDU
Information provided by the PKI file:
\brief Returns the User Created PDU. \return UserCreatedPDU, the User Created PDU widget.- Specified by:
getUserCreatedPDUin interfaceAppWindow- Returns:
- UserCreatedPDU Returns a UserCreatedPDU
-
getNetworkComponentBox
Information provided by the PKI file:
\brief Returns the Network Component Box. \return NetworkComponentBox, the NetworkComponentBox widget.- Specified by:
getNetworkComponentBoxin interfaceAppWindow- Returns:
- NetworkComponentBox Returns a NetworkComponentBox
-
getPDUListWindow
Information provided by the PKI file:
\brief Returns the PDU list window. \return PDUListWindow, the PDU List Window widget.- Specified by:
getPDUListWindowin interfaceAppWindow- Returns:
- PDUListWindow Returns a PDUListWindow
-
getActivityWizard
Information provided by the PKI file:
\brief Returns the Activity Wizard. \return ActivityWizard, the Activity Wizard widget.- Specified by:
getActivityWizardin interfaceAppWindow- Returns:
- ActivityWizard Returns a ActivityWizard
-
getInfoDialog
Information provided by the PKI file:
\brief Returns the info dialog. \return InfoDialog, the Info Dialog widget.- Specified by:
getInfoDialogin interfaceAppWindow- Returns:
- InfoDialog Returns a InfoDialog
-
getCommonToolbar
Information provided by the PKI file:
\brief Returns the Common Toolbar. \return InfoDialog, the Common Toolbar widget.- Specified by:
getCommonToolbarin interfaceAppWindow- Returns:
- CommonToolbar Returns a CommonToolbar
-
isSimulationMode
public boolean isSimulationMode()Information provided by the PKI file:
\brief Returns true if currently in Simulation mode, otherwise false. \return bool, true if currently in Simulation mode, otherwise false.- Specified by:
isSimulationModein interfaceAppWindow- Returns:
- boolean Returns a boolean
-
isRealtimeMode
public boolean isRealtimeMode()Information provided by the PKI file:
\brief Returns true if currently in Realtime mode, otherwise false. \return bool, true if currently in Realtime mode, otherwise false.- Specified by:
isRealtimeModein interfaceAppWindow- Returns:
- boolean Returns a boolean
-
isLogicalMode
public boolean isLogicalMode()Information provided by the PKI file:
\brief Returns true if currently in Logical workspace, otherwise false. \return bool, true if currently in Logical workspace, otherwise false.- Specified by:
isLogicalModein interfaceAppWindow- Returns:
- boolean Returns a boolean
-
isPhysicalMode
public boolean isPhysicalMode()Information provided by the PKI file:
\brief Returns true if currently in Physical workspace, otherwise false. \return bool, true if currently in Physical workspace, otherwise false.- Specified by:
isPhysicalModein interfaceAppWindow- Returns:
- boolean Returns a boolean
-
getActiveWorkspace
Information provided by the PKI file:
\brief Returns the current active workspace. \return Workspace, the current active workspace.- Specified by:
getActiveWorkspacein interfaceAppWindow- Returns:
- Workspace Returns a Workspace
-
getActiveDialog
Information provided by the PKI file:
\brief Returns the current active dialog. \return ActiveDialog, the current active dialog.- Specified by:
getActiveDialogin interfaceAppWindow- Returns:
- ActiveDialog Returns a ActiveDialog
-
getAdminDialog
Information provided by the PKI file:
\brief Returns the administrative dialog. \return AdministrativeDialog, the administrative dialog widget.- Specified by:
getAdminDialogin interfaceAppWindow- Returns:
- AdministrativeDialog Returns a AdministrativeDialog
-
getPaletteDialog
Information provided by the PKI file:
\brief Returns the palette dialog. \return PaletteDialog, the palette dialog widget.- Specified by:
getPaletteDialogin interfaceAppWindow- Returns:
- PaletteDialog Returns a PaletteDialog
-
getPrintDialog
Information provided by the PKI file:
\brief Returns the print dialog. \return PrintDialogPT4, the print dialog widget.- Specified by:
getPrintDialogin interfaceAppWindow- Returns:
- PrintDialogPT4 Returns a PrintDialogPT4
-
getInstructionDlg
Information provided by the PKI file:
\brief Returns the activity instructions dialog. \return InstructionDlg, the activity instructions dialog widget.- Specified by:
getInstructionDlgin interfaceAppWindow- Returns:
- InstructionDlg Returns a InstructionDlg
-
suppressInstructionDlg
public void suppressInstructionDlg(boolean bSuppress) - Specified by:
suppressInstructionDlgin interfaceAppWindow- Parameters:
bSuppress- Takes in a parameter of bSuppress
-
getWebViewManager
Information provided by the PKI file:
\brief Returns the WebView manager. \return WebViewManager, the WebView manager.- Specified by:
getWebViewManagerin interfaceAppWindow- Returns:
- WebViewManager Returns a WebViewManager
-
getActiveFile
Information provided by the PKI file:
\brief Returns the current active file. \return NetworkFile, the current active file.- Specified by:
getActiveFilein interfaceAppWindow- Returns:
- NetworkFile Returns a NetworkFile
-
exit
public void exit()Information provided by the PKI file:
\brief Exits Packet Tracer. -
exitNoConfirm
public void exitNoConfirm(boolean flag) Information provided by the PKI file:
\brief Exits packet tracer with or without save conformation. \param flag, true to exit Packet Tracer without save confirmation, false to exit with save confirmation.- Specified by:
exitNoConfirmin interfaceAppWindow- Parameters:
flag- Takes in a parameter of flag
-
getDialogManager
Information provided by the PKI file:
\brief Returns the dialog manager. \return DialogManager, the dialog manager.- Specified by:
getDialogManagerin interfaceAppWindow- Returns:
- DialogManager Returns a DialogManager
-
writeToPT
Information provided by the PKI file:
\brief Writes a message to the IPC Log and shows it. \param msg, the message to write to the IPC Log. -
getVersion
Information provided by the PKI file:
\brief Returns the Packet Tracer version number. \remark The version includes the major, minor, maintainance and possibly build numbers. \return QString, the Packet Tracer version number.- Specified by:
getVersionin interfaceAppWindow- Returns:
- String Returns a String
-
getBasePath
Information provided by the PKI file:
\brief Returns the installation directory of Packet Tracer. \return QString, the installation directory of Packet Tracer.- Specified by:
getBasePathin interfaceAppWindow- Returns:
- String Returns a String
-
fileNew
public boolean fileNew(boolean flag) Information provided by the PKI file:
\brief Creates a new file. \param flag, true shows the save confirmation dialog, false does not. \return bool, true if a new file was created, otherwise false. -
fileOpen
Information provided by the PKI file:
\brief Opens the specified file. \param filename, the path of the file. \return EFileOpenReturnValue Can be of the following values: eFileReturnOk, eFileReturnBadSSL, eFileReturnBadDecompress, eFileReturnBadBinary, eFileReturnBadMetafile, eFileReturnBadConfiguration, eFileReturnUnableToReadFile, eFileReturnBadOptions, eFileReturnUserCancel -
promptFileOpenFolder
Information provided by the PKI file:
\brief Prompts to browse a folder for a file to open. \param folder, the path of the folder to browse. \return EFileOpenReturnValue Can be of the following values: eFileReturnOk, eFileReturnBadSSL, eFileReturnBadDecompress, eFileReturnBadBinary, eFileReturnBadMetafile, eFileReturnBadConfiguration, eFileReturnUnableToReadFile, eFileReturnBadOptions, eFileReturnUserCancel- Specified by:
promptFileOpenFolderin interfaceAppWindow- Parameters:
folder- Takes in a parameter of folder- Returns:
- FileOpenReturnValue Returns a FileOpenReturnValue
-
getListOfFilesToOpen
Information provided by the PKI file:
\brief Retrives list of files that can be opened location. \param location, Reserved \return List of files that can be opened.- Specified by:
getListOfFilesToOpenin interfaceAppWindow- Parameters:
location- Takes in a parameter of location- Returns:
- List<String> Returns a List<String>
-
getListOfFilesSaved
Information provided by the PKI file:
\brief Retrives list of files saved at default location. \param location, Reserved \return List of files that can be opened.- Specified by:
getListOfFilesSavedin interfaceAppWindow- Parameters:
location- Takes in a parameter of location- Returns:
- List<String> Returns a List<String>
-
getDefaultFileSaveLocation
Information provided by the PKI file:
\brief Retrives default save location \return Returns default save location- Specified by:
getDefaultFileSaveLocationin interfaceAppWindow- Returns:
- String Returns a String
-
getTempFileLocation
Information provided by the PKI file:
\deprecated Use fileSaveAsync() and register to fileSaveDone() event.- Specified by:
getTempFileLocationin interfaceAppWindow- Returns:
- String Returns a String
-
fileSave
public boolean fileSave() -
fileSaveAsync
public void fileSaveAsync()Information provided by the PKI file:
\brief Starts save operation and returns immediately. \remark Register to fileSaveDone() event to get the status.- Specified by:
fileSaveAsyncin interfaceAppWindow
-
fileSaveAs
Information provided by the PKI file:
\deprecated Use fileSaveAsAsync() and register to fileSaveDone() event.- Specified by:
fileSaveAsin interfaceAppWindow- Parameters:
filename- Takes in a parameter of filename- Returns:
- boolean Returns a boolean
-
fileSaveAsAsync
Information provided by the PKI file:
\brief Starts save as operation to the specified file and returns immediately. \param filename, the path of the file. \remark Register to fileSaveDone() event to get the status.- Specified by:
fileSaveAsAsyncin interfaceAppWindow- Parameters:
filename- Takes in a parameter of filename
-
fileSaveAsNoPrompt
Information provided by the PKI file:
\brief Same as fileSaveAs() except it does not prompt to overwrite the file \param filename, the path of the file. \param bAsync, set to true to use fileSaveAsAsync() \remark Register to fileSaveDone() event to get the status.- Specified by:
fileSaveAsNoPromptin interfaceAppWindow- Parameters:
filename- Takes in a parameter of filenamebAsync- Takes in a parameter of bAsync
-
fileSaveAsPkz
Information provided by the PKI file:
\deprecated Use fileSaveAsPkzAsync() and register to fileSaveDone() event.- Specified by:
fileSaveAsPkzin interfaceAppWindow- Parameters:
filename- Takes in a parameter of filename- Returns:
- boolean Returns a boolean
-
fileSaveAsPkzAsync
Information provided by the PKI file:
\brief Starts save as pkz operation and returns immediately. \param filename, the path of the file. \remark Register to fileSaveDone() to get the status.- Specified by:
fileSaveAsPkzAsyncin interfaceAppWindow- Parameters:
filename- Takes in a parameter of filename
-
fileActivityWizard
public void fileActivityWizard()Information provided by the PKI file:
\brief Enters the Activity Wizard.- Specified by:
fileActivityWizardin interfaceAppWindow
-
fileOpenFromURL
Information provided by the PKI file:
\brief Opens a file at the specified URL. \param url, the URL of the file. \return bool, true if the file was opened, otherwise false.- Specified by:
fileOpenFromURLin interfaceAppWindow- Parameters:
url- Takes in a parameter of url- Returns:
- FileOpenReturnValue Returns a FileOpenReturnValue
-
fileSaveToBytes
Information provided by the PKI file:
\deprecated Use fileSaveToBytesAsync() and register to fileSaveToBytesDone().- Specified by:
fileSaveToBytesin interfaceAppWindow- Returns:
- List<Byte> Returns a List<Byte>
-
fileSaveToBytesAsync
public void fileSaveToBytesAsync()Information provided by the PKI file:
\brief Starts save to bytes operation and returns immediately. \remark Register to fileSaveToBytesDone() event to get save in bytes.- Specified by:
fileSaveToBytesAsyncin interfaceAppWindow
-
shouldIgnoreFileNew
public boolean shouldIgnoreFileNew()Information provided by the PKI file:
\brief This delegate determines if PT should ignore the file->new action. If ignoring, then the script module should do something to let the user know. \return bool, true if PT should ignore the file->new action.- Specified by:
shouldIgnoreFileNewin interfaceAppWindow- Returns:
- boolean Returns a boolean
-
shouldIgnoreFileOpenFolder
Information provided by the PKI file:
\brief This delegate determines if PT should ignore the file->open folder action. If ignoring, then the script module should do something to let the user know. \arg folder, the folder the user wants to browse for files to open. \return bool, true if PT should ignore the file->open folder action.- Specified by:
shouldIgnoreFileOpenFolderin interfaceAppWindow- Parameters:
folder- Takes in a parameter of folder- Returns:
- boolean Returns a boolean
-
shouldIgnoreFileOpenRecent
Information provided by the PKI file:
\brief This delegate determines if PT should ignore the file->open recent file action. If ignoring, then the script module should do something to let the user know. \arg file, the path of the recent file to open. \return bool, true if PT should ignore the file->open recent file action.- Specified by:
shouldIgnoreFileOpenRecentin interfaceAppWindow- Parameters:
file- Takes in a parameter of file- Returns:
- boolean Returns a boolean
-
shouldIgnoreFileSave
public boolean shouldIgnoreFileSave()Information provided by the PKI file:
\brief This delegate determines if PT should ignore the file->save action. If ignoring, then the script module should do something to let the user know. \return bool, true if PT should ignore the file->save action.- Specified by:
shouldIgnoreFileSavein interfaceAppWindow- Returns:
- boolean Returns a boolean
-
shouldIgnoreFileSaveAs
Information provided by the PKI file:
\brief This delegate determines if PT should ignore the file->save as action. If ignoring, then the script module should do something to let the user know. \arg file, the file to save as \return bool, true if PT should ignore the file->save as action.- Specified by:
shouldIgnoreFileSaveAsin interfaceAppWindow- Parameters:
file- Takes in a parameter of file- Returns:
- boolean Returns a boolean
-
shouldIgnoreFileExit
public boolean shouldIgnoreFileExit()Information provided by the PKI file:
\brief This delegate determines if PT should ignore the file->exit action. If ignoring, then the script module should do something to let the user know. \return bool, true if PT should ignore the file->exit action.- Specified by:
shouldIgnoreFileExitin interfaceAppWindow- Returns:
- boolean Returns a boolean
-
isPreventClose
public boolean isPreventClose()Information provided by the PKI file:
\brief Returns true if Packet Tracer is prevented from closing, otherwise false. \return bool, true if Packet Tracer is prevented from closing, otherwise false.- Specified by:
isPreventClosein interfaceAppWindow- Returns:
- boolean Returns a boolean
-
setPreventClose
public void setPreventClose(boolean bPreventClose) Information provided by the PKI file:
\brief Allows or prevents Packet Tracer from closing. \param bPreventClose, true to prevent Packet Tracer from closing, false to allow closing.- Specified by:
setPreventClosein interfaceAppWindow- Parameters:
bPreventClose- Takes in a parameter of bPreventClose
-
getProcessId
public long getProcessId()Information provided by the PKI file:
\brief Returns Packet Tracer application process ID. \return long, Packet Tracer application process ID.- Specified by:
getProcessIdin interfaceAppWindow- Returns:
- long Returns a long
-
getSessionId
Information provided by the PKI file:
\brief Returns the globally unique Packet Tracer application session ID. \return QString, the globally unique Packet Tracer application session ID.- Specified by:
getSessionIdin interfaceAppWindow- Returns:
- String Returns a String
-
getUserFolder
Information provided by the PKI file:
\brief Returns the user folder of the current user logged into the OS. \return QString, the user folder of the current user logged into the OS.- Specified by:
getUserFolderin interfaceAppWindow- Returns:
- String Returns a String
-
setVisible
public void setVisible(boolean flag) Information provided by the PKI file:
\brief This event is emitted when a message box should be displayed. \NOT APPLICABLE TO DESKTOP event: popupMessage(QString reason, QString title, QString message, QString buttonA, QString buttonB, QString buttonC, QString buttonD) - PrivApplication; \brief Shows or hides the Packet Tracer main window. \param flag, true to show the Packet Tracer main window, false to hide it.- Specified by:
setVisiblein interfaceAppWindow- Parameters:
flag- Takes in a parameter of flag
-
raise
public void raise() -
setDisabled
public void setDisabled(boolean flag) Information provided by the PKI file:
\brief Disables or enables the application. Buttons, etc will be shown as disabled and unuable. \param flag, true to disable the application and false to enable.- Specified by:
setDisabledin interfaceAppWindow- Parameters:
flag- Takes in a parameter of flag
-
isMaximized
public void isMaximized()Information provided by the PKI file:
\brief Returns whether the Packet Tracer main window is maximized.- Specified by:
isMaximizedin interfaceAppWindow
-
showMaximized
public void showMaximized()Information provided by the PKI file:
\brief Sets the Packet Tracer main window to the maximum size.- Specified by:
showMaximizedin interfaceAppWindow
-
isMinimized
public void isMinimized()Information provided by the PKI file:
\brief Returns whether the Packet Tracer main window is minimized.- Specified by:
isMinimizedin interfaceAppWindow
-
showMinimized
public void showMinimized()Information provided by the PKI file:
\brief Sets the Packet Tracer main window to the minimum size.- Specified by:
showMinimizedin interfaceAppWindow
-
showNormal
public void showNormal()Information provided by the PKI file:
\brief Sets the Packet Tracer main window to the normal size.- Specified by:
showNormalin interfaceAppWindow
-
setWindowTitle
Information provided by the PKI file:
\brief Sets the Packet Tracer main window title. \param title, the window title- Specified by:
setWindowTitlein interfaceAppWindow- Parameters:
title- Takes in a parameter of title
-
setWindowGeometry
public void setWindowGeometry(int x, int y, int width, int height) Information provided by the PKI file:
\brief Sets the Packet Tracer main window geometry and position. \param x, the x-coordinate of the main window. \param y, the y-coordinate of the main window. \param width, the width of the main window. \param height, the height of the main window.- Specified by:
setWindowGeometryin interfaceAppWindow- Parameters:
x- Takes in a parameter of xy- Takes in a parameter of ywidth- Takes in a parameter of widthheight- Takes in a parameter of height
-
getX
public int getX()Information provided by the PKI file:
\brief Returns the Packet Tracer main window x-coorindate. \return int, the Packet Tracer main window x-coorindate. -
getY
public int getY()Information provided by the PKI file:
\brief Returns the Packet Tracer main window y-coorindate. \return int, the Packet Tracer main window y-coorindate. -
getWidth
public int getWidth()Information provided by the PKI file:
\brief Returns the Packet Tracer main window width. \return int, the Packet Tracer main window width. -
getHeight
public int getHeight()Information provided by the PKI file:
\brief Returns the Packet Tracer main window height. \return int, the Packet Tracer main window height. -
setMaximumSize
public void setMaximumSize(int width, int height) Information provided by the PKI file:
\brief Sets the maximum size of the Packet Tracer main window.- Specified by:
setMaximumSizein interfaceAppWindow- Parameters:
width- Takes in a parameter of widthheight- Takes in a parameter of height
-
setMaximumWidth
public void setMaximumWidth(int width) Information provided by the PKI file:
\brief Sets the maximum width of the Packet Tracer main window.- Specified by:
setMaximumWidthin interfaceAppWindow- Parameters:
width- Takes in a parameter of width
-
setMaximumHeight
public void setMaximumHeight(int height) Information provided by the PKI file:
\brief Sets the maximum height of the Packet Tracer main window.- Specified by:
setMaximumHeightin interfaceAppWindow- Parameters:
height- Takes in a parameter of height
-
getMaximumWidth
public int getMaximumWidth()Information provided by the PKI file:
\brief Returns the maximum width of the Packet Tracer main window.- Specified by:
getMaximumWidthin interfaceAppWindow- Returns:
- int Returns a int
-
getMaximumHeight
public int getMaximumHeight()Information provided by the PKI file:
\brief Returns the maximum height of the Packet Tracer main window.- Specified by:
getMaximumHeightin interfaceAppWindow- Returns:
- int Returns a int
-
setMinimumSize
public void setMinimumSize(int width, int height) Information provided by the PKI file:
\brief Sets the minimum size of the Packet Tracer main window.- Specified by:
setMinimumSizein interfaceAppWindow- Parameters:
width- Takes in a parameter of widthheight- Takes in a parameter of height
-
setMinimumWidth
public void setMinimumWidth(int width) Information provided by the PKI file:
\brief Sets the minimum width of the Packet Tracer main window.- Specified by:
setMinimumWidthin interfaceAppWindow- Parameters:
width- Takes in a parameter of width
-
setMinimumHeight
public void setMinimumHeight(int height) Information provided by the PKI file:
\brief Sets the minimum height of the Packet Tracer main window.- Specified by:
setMinimumHeightin interfaceAppWindow- Parameters:
height- Takes in a parameter of height
-
getMinimumWidth
public int getMinimumWidth()Information provided by the PKI file:
\brief Returns the minimum width of the Packet Tracer main window.- Specified by:
getMinimumWidthin interfaceAppWindow- Returns:
- int Returns a int
-
getMinimumHeight
public int getMinimumHeight()Information provided by the PKI file:
\brief Returns the minimum height of the Packet Tracer main window.- Specified by:
getMinimumHeightin interfaceAppWindow- Returns:
- int Returns a int
-
getMainViewAreaWidth
public int getMainViewAreaWidth()Information provided by the PKI file:
\brief Returns the main view area's width. \return int, the main view area's width.- Specified by:
getMainViewAreaWidthin interfaceAppWindow- Returns:
- int Returns a int
-
getMainViewAreaHeight
public int getMainViewAreaHeight()Information provided by the PKI file:
\brief Returns the main view area's height. \return int, the main view area's height.- Specified by:
getMainViewAreaHeightin interfaceAppWindow- Returns:
- int Returns a int
-
isInterfaceLocked
Information provided by the PKI file:
\brief Returns true if the interface with the specified ID is locked, otherwise false. \param ID, the ID of the item to check if locked. \param branchID1, limit the search to this branch ID. \param branchID2, limit the search to this branch ID of branchID1. \return bool, true if the interface with the specified ID is locked, otherwise false.- Specified by:
isInterfaceLockedin interfaceAppWindow- Parameters:
ID- Takes in a parameter of IDbranchID1- Takes in a parameter of branchID1branchID2- Takes in a parameter of branchID2- Returns:
- boolean Returns a boolean
-
setClipboardText
Information provided by the PKI file:
\brief Sets the clipboard text(copy/paste text) to the given text. \param text, text to put on the clipboard to use for paste.- Specified by:
setClipboardTextin interfaceAppWindow- Parameters:
text- Takes in a parameter of text
-
getClipboardText
Information provided by the PKI file:
\brief Returns the current clipboard text, if any. \return QString, text stored in the copy/paste clipboard.- Specified by:
getClipboardTextin interfaceAppWindow- Returns:
- String Returns a String
-
helpPath
Information provided by the PKI file:
\brief Open a help file at the given path. \param subPath, subpath to the file to open. -
openURL
Information provided by the PKI file:
\brief Open URL in external web browser. \param url, url to open. -
getEnvironmentDialog
Information provided by the PKI file:
\brief Returns the Environment Dialog. \return Environment Dialog- Specified by:
getEnvironmentDialogin interfaceAppWindow- Returns:
- EnvironmentDialog Returns a EnvironmentDialog
-
listDirectory
Information provided by the PKI file:
\brief Temporary function used to update sample files. Not for normal use.- Specified by:
listDirectoryin interfaceAppWindow- Parameters:
location- Takes in a parameter of locationfilter- Takes in a parameter of filter- Returns:
- List<String> Returns a List<String>
-
setCheckOutdatedDevices
public void setCheckOutdatedDevices(boolean bCheck) Information provided by the PKI file:
\brief Set if devices marked as outdated should be displayed for selection. \param bCheck, true if outdated devices should be handled when setting up the toolbar, false if not.- Specified by:
setCheckOutdatedDevicesin interfaceAppWindow- Parameters:
bCheck- Takes in a parameter of bCheck
-
deletePTConf
public void deletePTConf()- Specified by:
deletePTConfin interfaceAppWindow
-
getPTSAMode
Information provided by the PKI file:
\brief Get the current PTSA Mode. \return QString, current PTSA Mode.- Specified by:
getPTSAModein interfaceAppWindow- Returns:
- String Returns a String
-
setPTSAMode
Information provided by the PKI file:
\brief Get the current PTSA Mode. \return QString, current PTSA Mode.- Specified by:
setPTSAModein interfaceAppWindow- Parameters:
ptsaMode- Takes in a parameter of ptsaMode
-
isPTSA
public boolean isPTSA()Information provided by the PKI file:
\brief returns true if PTSA \return bool, true if PTSA. -
setPTSAPluginVisible
public void setPTSAPluginVisible(boolean bVisible) Information provided by the PKI file:
\brief show and hide pt window, called from ptsa plugin only. you still need to clear other windows, possibly with file->new \return- Specified by:
setPTSAPluginVisiblein interfaceAppWindow- Parameters:
bVisible- Takes in a parameter of bVisible
-
isActivityWizardOpen
public boolean isActivityWizardOpen()- Specified by:
isActivityWizardOpenin interfaceAppWindow- Returns:
- boolean Returns a boolean
-